package com.program.facesigninsystem.service;

import com.program.facesigninsystem.entity.Product;
import com.program.facesigninsystem.entity.Rewards;

import java.util.List;
import java.util.Map;

public interface IRewardService {
    Rewards selectReward(String uid);
    void addNewRewards(
            String uid,
            int limit_from_record_a,
            int limit_from_record_b,
            int limit_from_record_c,
            int limit_from_record_activity,
            String last_gain_day,
            int reward_points,
            int day_reward
    );

    void updateRewards(
            String uid,
            int limit_from_record_a,
            int limit_from_record_b,
            int limit_from_record_c,
            int limit_from_record_activity,
            String last_gain_day,
            int reward_points,
            int day_reward
    );

    void addNewProducts(
            String id,
            String name,
            int price,
            String caption,
            String imageUrl,
            int storage,
            int total
    );
    void updateProductShow(int show,String id);

    void updateProductsStorage(
            String id,
            int storage
    );

    List<Product> selectAllProducts();

    List<Product> selectAllProductsShow();

    void addNewRedeemRecord(
            String id,
            String uid,
            String name,
            String phone,
            String createTime,
            String province,
            String city,
            String address,
            String pid,
            int state
    );

    void updateRedeemRecordState(
            String id,
            int state
    );

    Map<String,Integer> selectProductById(String id);

    List<Map<String,Object>> selectAllRedeemRecord();

    List<Map<String,Object>> selectRecordNotSend();

    List<Map<String,Object>> selectRecordAlreadySend();

    List<Map<String,Object>> selectMyRedeemRecord(
            String uid
    );
}
